<template>
  <section class="service-consulting">
    <div class="left" @click="handleSkipCustomerService">
      <svg class="svg">
        <use xlink:href="#customer-service" />
      </svg>
      <span>在线客服</span>
    </div>
    <div class="right" @click="handleSkipMakeCall">
      <svg class="svg">
        <use xlink:href="#telephone" />
      </svg>
      <span>在线客服</span>
    </div>
  </section>
</template>

<script>
export default {
  methods: {
    handleSkipCustomerService() {
      location.href = 'https://ecs-im.ele.me/'
    },
    handleSkipMakeCall() {
      location.href = 'tel:'+ 123
    }
  }
};
</script>
<style lang="less" scoped>
.service-consulting {
  display: flex;
  font-size: 14px;
  overflow: hidden;
  .left,
  .right {
    text-align: center;
    padding: 20px;
    width: 50%;
    border-bottom: 1px solid #fbfbfb;
    span {
      display: block;
      margin-top: 5px;
    }
  }
  .left {
    border-right: 1px solid #fbfbfb;
  }
  .svg {
    width: 25px;
    height: 25px;
  }
  .right {
    .svg {
      padding: 3px;
    }
  }
}
</style>